<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script>
<link href="style.css" rel="stylesheet" type="text/css">
<link href="inside.css" rel="stylesheet" type="text/css">
<link href="member.css" rel="stylesheet" type="text/css">
<title>帳號資料</title>
<script type="text/JavaScript">
function check_form()
{
	
    if(document.form1.name.value=="")
    {
        alert("請輸姓名");
        return (false);
    }   	
	
	 if(document.form1.mobile.value=="")
    {
        alert("請輸入手機號碼");
        return (false);
    } 
	if(document.form1.birth.value=="")
    {
        alert("請輸入完整的生日日期");
        return (false);
    }   
	
	if(document.form1.job.value=="")
    {
        alert("請選擇你的職業");
        return (false);
    } 
	
	var email = document.form1.email.value;
	var sReg = /[_a-zA-Z\d\-\.]+@[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+$/; 
	if ( ! sReg.test(email) || document.form1.email.value=="" ) 
	{ 
		alert("Email地阯錯誤！請重新輸入！"); 
		return false; 
	} 
  
}
</script>
</head>

<body>
<div id="container">
<!--header-->
<{include file="./header.html"}>   
<!--header-->

<!--menu-->
<{include file="./menu.html"}> 
<!--menu-->

<div class="main2">

	<{include file="./left.html"}>   

    <div class="list" id="right">
      <div  style=" padding-top:20px">
        
<DIV class=memberlist>
<TABLE height="100%" cellSpacing=0 cellPadding=2 width="100%" 
            border=0>
              <TBODY>
             <form name="form1" action="userinfo.php" method="post"  onSubmit="return check_form()">
              <TR align=middle>
                <TD height="30" 
                  colSpan=2 align="center" valign="middle" background=images/zhuce_78.jpg><span  style="color:#000000; font-size:14px"><b>會員基本資料</b></span></TD>
              </TR>
              <TR>
                <TD width="16%" bgColor=#ffffff height=30><FONT 
                  color=#1f7710>*帳號</FONT></TD>
                <TD width="84%" bgColor=#ffffff height=30><FONT 
                  color=#666666><INPUT  name=username class="input2" id=username value="<{$user_id}>" readonly size=12 maxLength=12> 
                </FONT></TD></TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*會員姓名</FONT></TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666>
                <INPUT name=name  value="<{$name}>" class="input2"  id=name size=12 maxLength=20> 
                </FONT></TD></TR>
              <{if $type==2}>
              <TR>
                <TD bgColor=#ffffff height=30>身分證</TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666>
                <INPUT name="idk" class="input2" value="<{$idk}>" id=userid size=12 maxLength=20> 
                </FONT></TD></TR>              
              <TR>           
                <TD bgColor=#ffffff height=30>電話</TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666>
                  <INPUT name="tel" class="input2" id=tel size=12  value="<{$tel}>" maxLength=20> 
                例: 06 2131611 </FONT></TD></TR>
              <{/if}>
                
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*手機</FONT></TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666>
                <INPUT name=mobile class="input2" value="<{$mobile}>" id=mobile size=12 maxLength=20> 
                </FONT></TD></TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*性別</FONT></TD>
                <TD bgColor=#ffffff height=30>
               <{$sex}>
                </TD></TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*生日</FONT></TD>	
                <TD bgColor=#ffffff height=30><FONT color=#666666>
                  <INPUT name=birth class="input2" id=mobile2 size=12 value="<{$birth}>" maxLength=12>
                </FONT></TD></TR>
                <{if $type==2}>
              <TR>
                <TD bgColor=#ffffff height=30>地址</TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666>
                  <INPUT name="addr" class="input2" value="<{$addr}>" id=email2 size=30 maxLength=200>
                </FONT></TD></TR>
                
              <{/if}>
                
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*職業</FONT></TD>
                <TD bgColor=#ffffff height=30>
                     <SELECT name=job style="width:110px">
                     <OPTION  value="<{$profession}>"><{$profession}></OPTION>
                    <{$jobb}></SELECT> </TD></TR>
              <TR>
                <TD bgColor=#ffffff height=30><FONT color=#1f7710>*電子信箱</FONT></TD>
                <TD bgColor=#ffffff height=30><FONT color=#666666>
                <INPUT name="email" class="input2" value="<{$email}>" id=email size=30 maxLength=30> 
                </FONT></TD></TR>
              <TR bgColor=#ffffff>
                <TD height="50" colSpan=2>
                <INPUT name=Submit type=submit class="input2" value="  確定  "> 
                <input type="hidden" name="type" value="<{$type}>">
               <INPUT name=Submit2 type=reset class="input2" value="   重置  "></TD></TR></TBODY>
               </form>
               </TABLE>
      <P class=sep></P></DIV>
      </div>
    </div>


</div>
<!--foot-->
<{include file="./footer.html"}> 
<!--foot-->
</div>
</body>
</html>
